<?php 
    $url = new Url();    
?> 

<div class="clearfix" id="content">        

    <div class="contentWrap clearfix" style="padding: 0px;">
        <div class="assignment">
            <h3><a href="javascript:"><?php echo $assignment_data['assignment_title']; ?></a></h3>            
            <div class="assignment-right-tools">
                <!--<span class="due-date"><span>Due:</span> <strong>Oct 19, 2012</strong></span>-->
                <input type="button" value="Chấm" class="default-total-button" style="margin-top: 0px;" onclick="submit_mark()">
                <input value="<?php echo $exercise_data[0]['exercise_grade'];?>" id="mark_exercise" maxlength="5" class="default-total" style="font-size: 16px;">
                <span class="default-total-label">Điểm:</span>
                <input type="hidden" id="current_exercise" value="<?php echo $exercise_data[0]['exercise_id']; ?>">
            </div>
        </div>
        <div style="" id="middle-column2">                        
            <div id="group-container" style="max-height: 450px;">
                <div class="group-1718977">
                    <h4 style="color:#336699"><span><?php echo $data_group['group_name']; ?></span></h4>
                    <?php foreach($exercise_data as $row){ ?>
                        <a class="ungraded user" href="javascript:" onclick="show_detail(<?php echo $row['exercise_id']; ?>,'<?php echo $row['exercise_grade']; ?>')">
                            <img class="small_avatar" src="<?php echo Yii::app()->params['urlRs'];?>/images/default_avatar_t.png">
                            <div class="user-info">
                                <span class="name"><?php echo $row['user_fullname']; ?></span>
                                <span class="status">Đã nộp</span>
                            </div>
                        </a>                
                        <?php } ?>                    
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div id="right-column" style="min-height: 450px;">
            <div id="assignment-overview">
                <?php $i=0; foreach($exercise_data as $row){ ?>
                <div id="assignment-description" class="detail_exercise detail_exercise_<?php echo $row['exercise_id']; ?>" style="<?php if($i != 0){echo "display: none;";} ?>">
                    <div id="assignment-description-title">
                        Tổng quan bài tập
                        <span class="due-date"><span>Được nộp vào</span> <strong><?php echo date('j',$row['exercise_create_date']); ?> tháng <?php echo date('m',$row['exercise_create_date']); ?>, <?php echo date('Y',$row['exercise_create_date']); ?></strong></span>
                    </div>
                    
                    <div id="assignment-description-content">
                        test                
                        <div class="post-entry2">
                            <div class="text-post">
                                <div class="msg-content-container ">                                    
                                    <div>
                                        <div class="file-label txt">
                                            <span>
                                                <span class="file-icon-wrap"><img class="icon txt" src="<?php echo Yii::app()->params['urlRs'];?>/images/txt.png"></span>
                                                <span class="file-link-wrap"><a href="<?php echo Yii::app()->params['urlRs'];?>/upload_data<?php echo $row['exercise_link']; ?>"><?php echo $row['exercise_file_name']; ?></a></span>                                                
                                                <a href="<?php echo Yii::app()->params['urlRs'];?>/upload_data<?php echo $row['exercise_link']; ?>" id="doc-viewer-preview-31767595" class="doc-view-preview">Download</a>                                                        
                                                <span class="file-link-wrap"><a href="javascript:" id="doc-viewer-preview-31767595" class="doc-view-preview"><?php echo $row['exercise_description']; ?></a></span>
                                            </span>
                                        </div>
                                    </div>                                    
                                </div>
                            </div>
                        </div>
                    </div>                    
                </div>
                <?php $i++;} ?>                
            </div>            
        </div>
    </div>

</div>

<?php include "grade.js.php"; ?>
